package com.realestate.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the brtb_product_attribute database table.
 * 
 */
@Entity
@Table(name="brtb_attribute")
public class BrtbAttribute implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private String attributeCode;
	
	private String attributeName;

	private Boolean required;
	
	private String description;

	private Date makeDate;

	private String recordStatus;

	private Set<BrtbProductAttributeValue> brtbProductAttributeValues;

    public BrtbAttribute() {
    }

    @Id
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="attribute_code")
	public String getAttributeCode() {
		return this.attributeCode;
	}

	public void setAttributeCode(String attributeCode) {
		this.attributeCode = attributeCode;
	}
	
	@Column(name="attribute_name")
	public String getAttributeName() {
		return this.attributeName;
	}

	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}

	@Column(name="required")
	public Boolean getRequired() {
		return required;
	}

	public void setRequired(Boolean required) {
		this.required = required;
	}
	
	@Column(name="description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name="make_date")
	public Date getMakeDate() {
		return this.makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}

	@Column(name="record_status")
	public String getRecordStatus() {
		return this.recordStatus;
	}

	public void setRecordStatus(String recordStatus) {
		this.recordStatus = recordStatus;
	}

	@OneToMany(mappedBy="brtbAttribute")
	public Set<BrtbProductAttributeValue> getBrtbProductAttributeValues() {
		return this.brtbProductAttributeValues;
	}

	public void setBrtbProductAttributeValues(Set<BrtbProductAttributeValue> brtbProductAttributeValues) {
		this.brtbProductAttributeValues = brtbProductAttributeValues;
	}
	
}